import { axios } from '@/utils/request'

const prefix = '/allocationApi'


/**
 * 高级查询
 * @param params
 * @returns {AxiosPromise}
 */
export function superPageFetchList(params) {
  return axios({
    url: prefix + '/queryPage',
    method: 'GET',
    params: {
      ...params
    }
  })
}
/**
 * 新增
 * @param params
 * @returns {AxiosPromise}
 */
export function addObj(params) {
  return axios({
    url: prefix + '/addAllocation',
    method: 'POST',
    data: {
      ...params
    }
  })
}
/**
 * 获取详情
 * @param id
 * @returns {AxiosPromise}
 */
export function getObj(id) {
  return axios({
    url: prefix + '/getAllocationInfo/' + id,
    method: 'GET'
  })
}